package com.atguigu.eduservice.client;

import com.atguigu.eduservice.entity.UcenterMember;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 用户信息远程调用类
 */
@Component
@FeignClient(value = "service-ucenter")
public interface UcenterClient {

    @PostMapping("/educenter/member/getInfoUc/{id}")
    public UcenterMember getInfo(@PathVariable("id") String id);
}
